package com.Mobile.Entity;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import com.Entity.Userdata;
import com.Entity.Users;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */
@Entity

public class MobileUsers implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private Integer userId;
	private short userType;
	private short userAccountStatus;
	private String userName;
	private String password;
	private String passwordMd5;
	private String privateEmail;
	private String nickName;
	private Timestamp lastActivityTime;
	private Integer rank;
	private Integer loginTimes;
	private String loginUserShowName;
	private Integer deviceId;
	private Integer communityId;
	private Integer cardId;
	private String cardPass;
	private String realName;
	private String idcard;
	private Integer years;
	private Integer months;
	private Integer days;
	private String sex;
	private String province;
	private String city;
	private String county;
	private String userAddress;
	private String signature;
	private Date expectedDateBirth;
	private Date pregnancyDate;
	private Date date;
    private Integer CommunityHosID;
    private String CommunityHosName;
    private String CommunityDesc;
    private Integer Status;
    private String phoneNumber;
	// Constructors

	

	/** default constructor */
	public MobileUsers() {
	}

	/** full constructor */
	public MobileUsers(short userType, short userAccountStatus, String userName,
			String password, String passwordMd5, String privateEmail,
			String nickName, Timestamp lastActivityTime, Integer rank,
			Integer loginTimes, String loginUserShowName, Integer deviceId,
			Integer communityId,Integer cardId, String cardPass, String realName,
			String idcard, Integer years, Integer months, Integer days,
			String sex, String province, String city, String county,
			String userAddress, String signature, Date expectedDateBirth,
			Date pregnancyDate,Date date,Integer CommunityHosID,String CommunityHosName,
			String CommunityDesc,Integer Status,String phoneNumber) {
		this.userType = userType;
		this.userAccountStatus = userAccountStatus;
		this.userName = userName;
		this.password = password;
		this.passwordMd5 = passwordMd5;
		this.privateEmail = privateEmail;
		this.nickName = nickName;
		this.lastActivityTime = lastActivityTime;
		this.rank = rank;
		this.loginTimes = loginTimes;
		this.loginUserShowName = loginUserShowName;
		this.deviceId = deviceId;
		this.communityId = communityId;
		this.cardId = cardId;
		this.cardPass = cardPass;
		this.realName = realName;
		this.idcard = idcard;
		this.years = years;
		this.months = months;
		this.days = days;
		this.sex = sex;
		this.province = province;
		this.city = city;
		this.county = county;
		this.userAddress = userAddress;
		this.signature = signature;
		this.expectedDateBirth = expectedDateBirth;
		this.pregnancyDate = pregnancyDate;
		this.date=date;
		this.setCommunityHosID(CommunityHosID);
		this.setCommunityHosName(CommunityHosName);
		this.setCommunityDesc(CommunityDesc);
		this.setStatus(Status);
		this.phoneNumber=phoneNumber;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "UserID", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "UserType")
	public short getUserType() {
		return this.userType;
	}

	public void setUserType(short userType) {
		this.userType = userType;
	}

	@Column(name = "UserAccountStatus")
	public short getUserAccountStatus() {
		return this.userAccountStatus;
	}

	public void setUserAccountStatus(short userAccountStatus) {
		this.userAccountStatus = userAccountStatus;
	}

	@Column(name = "UserName", length = 64)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "Password", length = 128)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "PasswordMD5")
	public String getPasswordMd5() {
		return this.passwordMd5;
	}

	public void setPasswordMd5(String passwordMd5) {
		this.passwordMd5 = passwordMd5;
	}

	@Column(name = "PrivateEmail", length = 64)
	public String getPrivateEmail() {
		return this.privateEmail;
	}

	public void setPrivateEmail(String privateEmail) {
		this.privateEmail = privateEmail;
	}

	@Column(name = "NickName", length = 64)
	public String getNickName() {
		return this.nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	@Column(name = "LastActivityTime", length = 19)
	public Timestamp getLastActivityTime() {
		return this.lastActivityTime;
	}

	public void setLastActivityTime(Timestamp lastActivityTime) {
		this.lastActivityTime = lastActivityTime;
	}

	@Column(name = "Rank")
	public Integer getRank() {
		return this.rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	@Column(name = "LoginTimes")
	public Integer getLoginTimes() {
		return this.loginTimes;
	}

	public void setLoginTimes(Integer loginTimes) {
		this.loginTimes = loginTimes;
	}

	@Column(name = "LoginUserShowName", length = 200)
	public String getLoginUserShowName() {
		return this.loginUserShowName;
	}

	public void setLoginUserShowName(String loginUserShowName) {
		this.loginUserShowName = loginUserShowName;
	}

	@Column(name = "DeviceID")
	public Integer getDeviceId() {
		return this.deviceId;
	}

	public void setDeviceId(Integer deviceId) {
		this.deviceId = deviceId;
	}

	@Column(name = "CommunityID")
	public Integer getCommunityId() {
		return this.communityId;
	}

	public void setCommunityId(Integer communityId) {
		this.communityId = communityId;
	}
	

	@Column(name = "CardID")
	public Integer getCardId() {
		return this.cardId;
	}

	public void setCardId(Integer cardId) {
		this.cardId = cardId;
	}

	@Column(name = "CardPass", length = 20)
	public String getCardPass() {
		return this.cardPass;
	}

	public void setCardPass(String cardPass) {
		this.cardPass = cardPass;
	}

	@Column(name = "RealName", length = 50)
	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	@Column(name = "IDCard", length = 18)
	public String getIdcard() {
		return this.idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	@Column(name = "Years")
	public Integer getYears() {
		return this.years;
	}

	public void setYears(Integer years) {
		this.years = years;
	}

	@Column(name = "Months")
	public Integer getMonths() {
		return this.months;
	}

	public void setMonths(Integer months) {
		this.months = months;
	}

	@Column(name = "Days")
	public Integer getDays() {
		return this.days;
	}

	public void setDays(Integer days) {
		this.days = days;
	}

	@Column(name = "Sex", length = 10)
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "Province", length = 30)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "City", length = 30)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "County", length = 30)
	public String getCounty() {
		return this.county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	@Column(name = "UserAddress", length = 120)
	public String getUserAddress() {
		return this.userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	@Column(name = "Signature", length = 500)
	public String getSignature() {
		return this.signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "ExpectedDateBirth", length = 10)
	public Date getExpectedDateBirth() {
		
		return this.expectedDateBirth;
	}

	public void setExpectedDateBirth(Date expectedDateBirth) {
		this.expectedDateBirth = expectedDateBirth;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "PregnancyDate", length = 10)
	public Date getPregnancyDate() {
		return this.pregnancyDate;
	}

	public void setPregnancyDate(Date pregnancyDate) {
		this.pregnancyDate = pregnancyDate;
	}

	
	public void setDate(Date date) {
		// TODO Auto-generated method stub
		this.date=date;
	}

	public Integer getCommunityHosID() {
		return CommunityHosID;
	}

	public void setCommunityHosID(Integer communityHosID) {
		CommunityHosID = communityHosID;
	}

	public String getCommunityHosName() {
		return CommunityHosName;
	}

	public void setCommunityHosName(String communityHosName) {
		CommunityHosName = communityHosName;
	}

	public String getCommunityDesc() {
		return CommunityDesc;
	}

	public void setCommunityDesc(String communityDesc) {
		CommunityDesc = communityDesc;
	}

	public Integer getStatus() {
		return Status;
	}

	public void setStatus(Integer status) {
		Status = status;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
}